Searched hist:"21 c4d15b" (Results 1 – 2 of 2) sorted by relevance
/qemu/include/sysemu/ |
H A D | iothread.h | 21c4d15b Wed Mar 06 11:55:28 GMT 2019 Peter Xu <peterx@redhat.com> iothread: replace init_done_cond with a semaphore
Only sending an init-done message using lock+cond seems an overkill to me. Replacing it with a simpler semaphore.
Meanwhile, init the semaphore unconditionally, then we can destroy it unconditionally too in finalize which seems cleaner.
Signed-off-by: Peter Xu <peterx@redhat.com> Message-id: 20190306115532.23025-2-peterx@redhat.com Message-Id: <20190306115532.23025-2-peterx@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
/qemu/ |
H A D | iothread.c | 21c4d15b Wed Mar 06 11:55:28 GMT 2019 Peter Xu <peterx@redhat.com> iothread: replace init_done_cond with a semaphore
Only sending an init-done message using lock+cond seems an overkill to me. Replacing it with a simpler semaphore.
Meanwhile, init the semaphore unconditionally, then we can destroy it unconditionally too in finalize which seems cleaner.
Signed-off-by: Peter Xu <peterx@redhat.com> Message-id: 20190306115532.23025-2-peterx@redhat.com Message-Id: <20190306115532.23025-2-peterx@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|